#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr[10] = {};
	int max = 0;
	for (int i = 0; i < 9; i++)
	{
		scanf("%d", &arr[i]);
	}
	max = arr[0];
	for (int j = 0; j < 9; j++)
	{
		if (max <= arr[j])
			max = arr[j];
		else
			max = max;
	}
	printf("%d", max);
	return 0;
}

